<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="http://localhost:8080/Maven_SSM/">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<a href="stu/add.do">添加</a>
	<table class="table table-hover">
		<tr>
			<td>学生姓名</td>
			<td>老师姓名</td>
			<td>老师时间</td>
			<td>操作</td>
		</tr>
		<c:forEach items="${stus }" var="stu">

			<tr>
				<td>${stu.name }</td>
				<td>${stu.tea.name }</td>
				<td>${stu.tea.creatTime }</td>
				<td><a href="stu/delete.do?id=${stu.id }">删除</a> <a
					href="stu/edit.do?id=${stu.id }">修改</a></td>
			</tr>
		</c:forEach>
	</table>


</body>
</html>